from rest_framework import serializers
from goods.models import SKUImage, SKU


# 获取sku图片信息
class ImageSerializers(serializers.ModelSerializer):
    class Meta:
        model = SKUImage
        fields = "__all__"

# 新增图片SKU信息
class SKUSimpleSerializer(serializers.ModelSerializer):
    class Meta:
        model = SKU
        fields = ("id", "name")
